package com.shure.modules.docs.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shure.modules.docs.entity.Docs;
import com.shure.modules.docs.mapper.DocsMapper;
import com.shure.modules.docs.query.DocsQuery;
import com.shure.modules.docs.service.DocsService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author wwt
 * @description 针对表【tb_docs(文档表)】的数据库操作Service实现
 * @createDate 2025-06-11 09:58:02
 */
@Service
@AllArgsConstructor
public class DocsServiceImpl extends ServiceImpl<DocsMapper, Docs> implements DocsService {

    private final DocsMapper docsMapper;

    @Override
    public Page<Docs> ipage(DocsQuery query) {
        return docsMapper.ipage(query.getPage(), query);
    }

    @Override
    public Docs isave(Docs docs) {
        this.save(docs);
        return docs;
    }
}




